import request from '@/utils/request'

// 获取岗位列表
export function pageTaskPosition(query) {
  return request({
    url: '/project/taskPosition/pagingTaskPosition',
    method: 'get',
    params: query
  })
}

// 获取任务日志列表
export function pageTaskLog(query) {
  return request({
    url: '/project/taskLog/paging',
    method: 'get',
    params: query
  })
}

// 删除岗位信息
export function deleteTaskPosition(positionId) {
  if (!positionId) {
    return false
  }
  return request({
    url: '/project/taskPosition/delete',
    method: 'post',
    params: { positionId }
  })
}

// 详情
export function getTaskPosition(positionId) {
  return request({
    url: '/project/taskPosition/getTaskPosition',
    method: 'get',
    params: { positionId }
  })
}

